package sv.com.globalsolutionslt.manejador;

import sv.com.globalsolutionslt.entidades.TipoJornada;
import java.io.Serializable;
import java.util.Calendar;
import javax.faces.event.ActionEvent;
import javax.inject.Named;
import javax.faces.view.ViewScoped;

@Named(value = "tipoJornadaController")
@ViewScoped
public class TipoJornadaController extends AbstractController<TipoJornada> implements Serializable {

    public TipoJornadaController() {
        super(TipoJornada.class);
    }
    
    @Override
    public void save(ActionEvent event) {
        this.getSelected().setFechaMod(Calendar.getInstance().getTime());
        this.getSelected().setUsuarioMod(1);
        super.save(event); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void saveNew(ActionEvent event) {
        this.getSelected().setFechaMod(Calendar.getInstance().getTime());
        this.getSelected().setUsuarioMod(1);
        super.saveNew(event); //To change body of generated methods, choose Tools | Templates.
    }

}
